

class DDOssModel {
  final String accessKeyId;
  final String policy;
  final String signature;
  final String expire;
  final String dir;
  final String host;
  final String callback;

  DDOssModel({
    required this.accessKeyId,
    required this.policy,
    required this.signature,
    required this.expire,
    required this.dir,
    required this.host,
    required this.callback,
  });

  factory DDOssModel.fromJson(Map<String, dynamic> json) {
    return DDOssModel(
      accessKeyId: json['accessKeyId'],
      policy: json['policy'],
      signature: json['signature'],
      expire: json['expire'],
      dir: json['dir'],
      host: json['host'],
      callback: json['callback'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'accessKeyId': accessKeyId,
      'policy': policy,
      'signature': signature,
      'expire': expire,
      'dir': dir,
      'host': host,
      'callback': callback,
    };
  }
}